Error message displays name of first application when a secondary application fails name validation
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
When specifying multiple apps in a snapcraft.yaml file, per below example, where one of the names fails naming rule validation, the first application is listed as the problematic application entry:
apps:
matrix-synapse:
command: synctl --no-daemonize start $SNAP_COMMON/homeserver.yaml
stop-command: synctl -c $SNAP_COMMON stop
plugs: [network-bind, network]
daemon: simple
hash_password:
command: hash_password
aliases:
- hash_password
The 'hash_password' name is invalid given the underscore, however the error produced is per below:
Issues while validating snapcraft.yaml: The 'apps' property does not match the required schema: 'matrix-synapse' is not a valid app name. App names consist of upper- and lower-case alphanumeric characters and hyphens. They cannot start or end with a hyphen.
This should indicate the problematic application (hash_password) rather than the first and valid application (matrix-synapse).
Evaluation history
No evaluation history available.